#ifndef _PARTHUS_USLC_SWITCH_PICONET_
#define _PARTHUS_USLC_SWITCH_PICONET_

/***********************************************************************
 *
 * HEADER NAME:    uslc_switch_piconet.h
 * PROJECT CODE:   BlueStream
 * DESCRIPTION:    LC Portion of Scatternet Interpiconet Switch Procedure
 * MAINTAINER:     Ivan Griffin
 * CREATION DATE:  8 April 2002
 *
 * SOURCE CONTROL: $Id: uslc_switch_piconet.h,v 1.1 2007/12/19 07:39:29 tianwq Exp $
 *
 * LICENSE:
 *     This source code is copyright (c) 2002-2004 Ceva Inc.
 *     All rights reserved.
 *
 ***********************************************************************/

void USLCsp_Initialise(void);

void USLCsp_Switch_Link(t_devicelink* p_dev_link);

t_deviceIndex USLCsp_Get_Activated_Device_Index(void);
t_deviceIndex USLCsp_Get_Activated_Piconet_Index(void);
boolean USLCsp_Set_Activated_Device_Index(t_deviceIndex device_index);
#if (PRH_BS_CFG_SYS_SCO_REPEATER_SUPPORTED==1)
void USLCsp_SCO_Rep_Switch(t_devicelink* p_dev_link);
#endif

#define USLCsp_RESUME_PICONET FALSE
#define USLCsp_CHANGE_PICONET TRUE


#define USLCsp_SWITCH_PICONET   0
#define USLCsp_UPDATE_PICONET   1

void _USLCsp_Switch_Piconet_Clock(u_int8 mode,u_int8 piconet_index);


#endif

